var http = require('http');
var querystring = require('querystring');
//json转换为字符串
var data = querystring.stringify({
	s: "相爱很难",
	type: "1"
});
/*var data = querystring.stringify({
	id: "927888006"
});*/
var options = {
	host: 'music.163.com',
	path: '/#/search/m/?'+data,
	method: 'GET',
	headers: {
		'Referer': 'http://music.163.com'
	}
};

var req = http.request(options, function (res) {  
    console.log('STATUS: ' + res.statusCode);  
    console.log('HEADERS: ' + JSON.stringify(res.headers));  
    console.log(options)
    res.setEncoding('utf8');  
    res.on('data', function (chunk) {  
        console.log('BODY: ' + chunk);  
    });  
});  
  
req.on('error', function (e) {  
    console.log('problem with request: ' + e.message);  
});  
req.end(); 